<?php

namespace app\api\model;

use think\Model;


class User extends Model
{
    // 表名
    protected $name = 'user';

    public function orders()
    {
        return $this->hasMany('Order');
    }

    public function comments()
    {
        return $this->hasMany('Comment');
    }
}
